﻿using System.Data;
using LibDataLayer;

namespace LibBusinessLayer
{
    public class BllMessage
    {
        #region[Get-Data]
        public DataTable GetMessage(string UserId_To)
        {
            return DALMessage.GetMessage(UserId_To);
        }
        public DataTable GetMessageCount(string UserId_To)
        {
            return DALMessage.GetMessageCount(UserId_To);
        }
        public DataTable GetMessageEdit(int ID)
        {
            return DALMessage.GetMessageEdit(ID);
        }
        #endregion

        #region[Insert-Update-Delete]
        public static bool Insert(DTOMessage obj)
        {
            return DALMessage.Insert(obj);
        }
        public static bool Delete(DTOMessage obj)
        {
            return DALMessage.Delete(obj);
        }
        #endregion
    }
}
